package com.ruoyi.risk.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 策略脚本配置信息对象 risk_strategies
 *
 * @author ruoyi
 * @date 2021-11-13
 */
public class RiskStrategies extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一ID */
    private String id;

    /** 策略名称 */
    @Excel(name = "策略名称")
    private String name;

    /** 策略描述 */
    @Excel(name = "策略描述")
    private String description;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer enabled;

    /** 定时任务是否启用 */
    @Excel(name = "定时任务是否启用")
    private Integer timetaskenabled;

    /** $column.columnComment */
    @Excel(name = "定时任务是否启用")
    private String content;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    private String updateUser;

    /** 决策类型，0策略 1流程 2模型 3调度 */
    @Excel(name = "决策类型，0策略 1流程 2模型 3调度")
    private Long type;

    /** 状态,0审核通过 1自审状态 2待审状态 3审核未通过状态 */
    @Excel(name = "状态,0审核通过 1自审状态 2待审状态 3审核未通过状态")
    private Long state;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setEnabled(Integer enabled)
    {
        this.enabled = enabled;
    }

    public Integer getEnabled()
    {
        return enabled;
    }
    public void setTimetaskenabled(Integer timetaskenabled)
    {
        this.timetaskenabled = timetaskenabled;
    }

    public Integer getTimetaskenabled()
    {
        return timetaskenabled;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setCreateUser(String createUser)
    {
        this.createUser = createUser;
    }

    public String getCreateUser()
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser)
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser()
    {
        return updateUser;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }
    public void setState(Long state)
    {
        this.state = state;
    }

    public Long getState()
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("enabled", getEnabled())
            .append("timetaskenabled", getTimetaskenabled())
            .append("content", getContent())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .append("type", getType())
            .append("state", getState())
            .toString();
    }
}
